package com.teafriend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 * @author 欧楚杨
 * @TableName tea
 */
@TableName(value ="tea")
@Data
@ApiModel(value = "茶叶实体类")
public class Tea implements Serializable {
    /**
     * 茶叶编号
     */
    @ApiModelProperty(value = "茶叶id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 茶叶名称
     */
    @ApiModelProperty(value = "茶叶名称")
    private String name;

    /**
     * 茶叶价格
     */
    @ApiModelProperty(value = "茶叶价格")
    private BigDecimal price;

    /**
     * 茶叶折扣
     */
    @ApiModelProperty(value = "茶叶折扣")
    private Integer discount;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}